package com.service.admin.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.service.admin.order.controller.req.OrderReq;
import com.service.core.rest.response.CommonPageRep;
import com.service.dao.model.Member;
import com.service.dao.model.MemberStore;
import com.service.dao.model.OrderProductHrCombo;
import com.service.admin.order.controller.rep.OrderHrComboPageRep;
import com.service.admin.order.controller.req.OrderHrComboPageReq;
import com.service.dao.model.ProductHrCombo;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 算力订单
 *
 * @author xxxx
 * @email xxxx@qq.com
 * @date 2019-11-10 22:06:11
 */
public interface OrderProductHrComboService extends IService<OrderProductHrCombo> {

    CommonPageRep pageOrder(OrderHrComboPageReq pageReq);


    OrderHrComboPageRep getOrderDetail(Integer orderId);

    BigDecimal totalEffectiveOrderByMemberListAndTime(List<Integer> memberIds, Date startTime, Date endTime);

    boolean create(OrderReq orderReq, ProductHrCombo combo, Member member, MemberStore memberStore);

    BigDecimal totalStatementByParam(String currentStr, List<Integer> orderStatus);
}

